<%@page import="java.util.ArrayList"%>
<%@page import="POJO.Product"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>购物车</title>
</head>
<body>
<% List<Product> car = (List<Product>)session.getAttribute("car"); 

%>


</body>

<table>
	<tr>
	<td width="100px"><b>名称</b></td>
	<td width="100px"><b>价格</b></td>
	<td width="100px"><b>描述</b></td>
	<td width="100px"><b>数量</b></td>

	</tr>
</table>
<table>
<%for(Product p : car) { %>

	<tr>
	<td width="100px"><%=p.getName()%></td>
	<td width="100px"><%=p.getPrice()%></td>
	<td width="100px"><%=p.getCode()%></td>
	<td width="100px"><%=p.getNumber()%></td>
	</tr>
	<%} %>
</table>
</html>